package com.yaozheng.vocationaltraining.adapter;

import com.yaozheng.vocationaltraining.fragment.IntegralConsumeFragment_;
import com.yaozheng.vocationaltraining.fragment.IntegralObtainFragment;
import com.yaozheng.vocationaltraining.fragment.IntegralObtainFragment_;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

/**
 * 积分规则设备器
 * 
 * @author Administrator
 * 
 */
public class IntegralRuleAdapter extends FragmentPagerAdapter {

	public IntegralRuleAdapter(FragmentManager fm) {
		super(fm);
	}

	@Override
	public Fragment getItem(int arg0) {
		switch (arg0) {
		case 0:
			return IntegralObtainFragment_.builder().build();
		default:
			return IntegralConsumeFragment_.builder().build();
		}
	}

	@Override
	public int getCount() {
		return 2;
	}

}
